namespace CIS.Customer
{
    using CISLib;
    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public class CustomerInfoPersonalPage : Page
    {
        protected DropDownList BirthDayDdl;
        protected DropDownList BirthMonthDdl;
        protected TextBox BirthPlaceTxb;
        protected DropDownList BirthYearDdl;
        protected DropDownList bloodTypeDdl;
        protected TextBox HeightTxb;
        protected Image iBtnCustomer;
        protected ImageButton iBtnGray1;
        protected ImageButton iBtnOrange0;
        protected ImageButton iBtnOrange2;
        protected ImageButton iBtnOrange3;
        protected ImageButton iBtnOrange4;
        protected ImageButton iBtnOrange5;
        protected ImageButton iBtnOrange6;
        protected ImageButton iBtnOrange7;
        protected ImageButton iBtnOrange8;
        protected Label lbBDate;
        protected Label lbBirth;
        protected Label lbBirthPlace;
        protected Label lbBloodType;
        protected Label lbBMonth;
        protected Label lbBYear;
        protected Label lbHeight;
        protected Label lbHomeAdd;
        protected Label lbHomeTel;
        protected Label lbMarriage;
        protected Label lbMDate;
        protected Label lbMMonth;
        protected Label lbMobile;
        protected Label lbMYear;
        protected Label lbRelocationAdd;
        protected Label lbSaveMsg;
        protected Label lbSpcHobbiex;
        protected Label lbWeight;
        protected DropDownList MarriageDateDdl;
        protected DropDownList MarriageMonthDdl;
        protected DropDownList MarriageYearDdl;
        protected TextBox MobileTxb;
        protected UserPrincipal Principal = null;
        protected RegularExpressionValidator RegularexpressionvalidatorMobile;
        protected RegularExpressionValidator RegularexpressionvalidatorTel1;
        protected RegularExpressionValidator RegularexpressionvalidatorTel2;
        protected RegularExpressionValidator RegularexpressionvalidatorTel3;
        protected TextBox RelocationAddTxb;
        protected Button saveBtn;
        protected TextBox SpcHobbiexTxb;
        protected TextBox TxbHomeAdd;
        protected TextBox TxbHomeTel1;
        protected TextBox TxbHomeTel2;
        protected TextBox TxbHomeTel3;
        protected TextBox WeightTxb;

        private void FillPage()
        {
            this.SetFromImage();
            this.SetFrom();
            Guid customerId = new Guid(base.Request.QueryString["CustomerId"]);
            if ((this.Principal.SysUser.IsAdmin <= 0) && !ManageSystemConfig.IsThisCustomerMaster(this.Principal.SysUser.UserId, customerId))
            {
                this.BirthPlaceTxb.ReadOnly = true;
                this.TxbHomeAdd.ReadOnly = true;
                this.RelocationAddTxb.ReadOnly = true;
                this.TxbHomeTel1.ReadOnly = true;
                this.TxbHomeTel2.ReadOnly = true;
                this.TxbHomeTel3.ReadOnly = true;
                this.MobileTxb.ReadOnly = true;
                this.WeightTxb.ReadOnly = true;
                this.HeightTxb.ReadOnly = true;
                this.SpcHobbiexTxb.ReadOnly = true;
                this.saveBtn.Visible = false;
            }
            if (ManageCustomer.IsExistSameCoustomerPersonalInfo(new Guid(base.Request.QueryString["CustomerId"])))
            {
                try
                {
                    CustomerPersonalInfo customerPersonalInfo = new CustomerPersonalInfo();
                    customerPersonalInfo = ManageCustomer.GetCustomerPersonalInfoViaId(new Guid(base.Request.QueryString["CustomerId"].ToString()));
                    try
                    {
                        if (((customerPersonalInfo.MarriageDate.Year != 0x708) || (customerPersonalInfo.MarriageDate.Month != 1)) || (customerPersonalInfo.MarriageDate.Day != 1))
                        {
                            for (int i = 0; i < this.MarriageYearDdl.Items.Count; i++)
                            {
                                if (this.MarriageYearDdl.Items[i].Text == customerPersonalInfo.MarriageDate.Year.ToString())
                                {
                                    this.MarriageYearDdl.SelectedIndex = i;
                                    break;
                                }
                            }
                            for (int i = 0; i < this.MarriageMonthDdl.Items.Count; i++)
                            {
                                if (this.MarriageMonthDdl.Items[i].Text == customerPersonalInfo.MarriageDate.Month.ToString())
                                {
                                    this.MarriageMonthDdl.SelectedIndex = i;
                                    break;
                                }
                            }
                            for (int i = 0; i < this.MarriageDateDdl.Items.Count; i++)
                            {
                                if (this.MarriageDateDdl.Items[i].Text == customerPersonalInfo.MarriageDate.Day.ToString())
                                {
                                    this.MarriageDateDdl.SelectedIndex = i;
                                    break;
                                }
                            }
                        }
                        if (((customerPersonalInfo.BirthDate.Year != 0x708) || (customerPersonalInfo.BirthDate.Month != 1)) || (customerPersonalInfo.BirthDate.Day != 1))
                        {
                            for (int i = 0; i < this.BirthYearDdl.Items.Count; i++)
                            {
                                if (this.BirthYearDdl.Items[i].Text == customerPersonalInfo.BirthDate.Year.ToString())
                                {
                                    this.BirthYearDdl.SelectedIndex = i;
                                    break;
                                }
                            }
                            for (int i = 0; i < this.BirthMonthDdl.Items.Count; i++)
                            {
                                if (this.BirthMonthDdl.Items[i].Text == customerPersonalInfo.BirthDate.Month.ToString())
                                {
                                    this.BirthMonthDdl.SelectedIndex = i;
                                    break;
                                }
                            }
                            for (int i = 0; i < this.BirthDayDdl.Items.Count; i++)
                            {
                                if (this.BirthDayDdl.Items[i].Text == customerPersonalInfo.BirthDate.Day.ToString())
                                {
                                    this.BirthDayDdl.SelectedIndex = i;
                                    break;
                                }
                            }
                        }
                        string strBloodType = customerPersonalInfo.BloodType;
                        strBloodType = strBloodType.Substring(0, strBloodType.IndexOf("\0"));
                        for (int i = 0; i < this.bloodTypeDdl.Items.Count; i++)
                        {
                            if (this.bloodTypeDdl.Items[i].Text == strBloodType)
                            {
                                this.bloodTypeDdl.SelectedIndex = i;
                                goto Label_0471;
                            }
                        }
                    }
                    catch (Exception)
                    {
                        return;
                    }
                Label_0471:
                    this.BirthPlaceTxb.Text = customerPersonalInfo.BirthPlace;
                    this.TxbHomeAdd.Text = customerPersonalInfo.FamilyAdd;
                    this.RelocationAddTxb.Text = customerPersonalInfo.RelocationAdd;
                    string[] strTelAry = customerPersonalInfo.PersonalTele.Split(new char[] { '-' });
                    this.TxbHomeTel1.Text = strTelAry[0];
                    this.TxbHomeTel2.Text = strTelAry[1];
                    this.TxbHomeTel3.Text = strTelAry[2];
                    this.MobileTxb.Text = customerPersonalInfo.Mobile;
                    for (int i = 0; i < this.bloodTypeDdl.Items.Count; i++)
                    {
                        if (this.bloodTypeDdl.Items[i].Value == customerPersonalInfo.BloodType)
                        {
                            this.bloodTypeDdl.SelectedIndex = i;
                            break;
                        }
                    }
                    this.WeightTxb.Text = customerPersonalInfo.Weight;
                    this.HeightTxb.Text = customerPersonalInfo.Height;
                    this.SpcHobbiexTxb.Text = customerPersonalInfo.SpecicalHobbies;
                }
                catch (Exception)
                {
                }
            }
        }

        private void iBtnOrange0_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                string customerId = base.Request.QueryString["CustomerId"].ToString();
                base.Response.Redirect("~/Customer/CustomerBasicInfoPage.aspx?IsModify=True&CustomerId=" + customerId.ToString(), true);
            }
            catch (Exception)
            {
            }
        }

        private void iBtnOrange2_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                string customerId = base.Request.QueryString["CustomerId"].ToString();
                base.Response.Redirect("~/Customer/CustomerInfoPreferencePage.aspx?IsModify=True&CustomerId=" + customerId.ToString(), true);
            }
            catch (Exception)
            {
            }
        }

        private void iBtnOrange3_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                string customerId = base.Request.QueryString["CustomerId"].ToString();
                base.Response.Redirect("~/Customer/CustomerInfoHealthCostumePage.aspx?IsModify=True&CustomerId=" + customerId.ToString(), true);
            }
            catch (Exception)
            {
            }
        }

        private void iBtnOrange4_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                string customerId = base.Request.QueryString["CustomerId"].ToString();
                base.Response.Redirect("~/Customer/CustomerInfoTravelPage.aspx?IsModify=True&CustomerId=" + customerId.ToString(), true);
            }
            catch (Exception)
            {
            }
        }

        private void iBtnOrange5_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                string customerId = base.Request.QueryString["CustomerId"].ToString();
                base.Response.Redirect("~/Customer/CustomerInfoStudyPage.aspx?IsModify=True&CustomerId=" + customerId.ToString(), true);
            }
            catch (Exception)
            {
            }
        }

        private void iBtnOrange6_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                string customerId = base.Request.QueryString["CustomerId"].ToString();
                base.Response.Redirect("~/Customer/CustomerInfoWorkPage.aspx?IsModify=True&CustomerId=" + customerId.ToString(), true);
            }
            catch (Exception)
            {
            }
        }

        private void iBtnOrange7_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                string customerId = base.Request.QueryString["CustomerId"].ToString();
                base.Response.Redirect("~/Customer/CustomerInfoFamilyPage.aspx?IsModify=True&CustomerId=" + customerId.ToString(), true);
            }
            catch (Exception)
            {
            }
        }

        private void iBtnOrange8_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                string customerId = base.Request.QueryString["CustomerId"].ToString();
                base.Response.Redirect("~/Customer/CustomerInfoOtherPage.aspx?IsModify=True&CustomerId=" + customerId.ToString(), true);
            }
            catch (Exception)
            {
            }
        }

        private void InitializeComponent()
        {
            this.iBtnOrange0.Click += new ImageClickEventHandler(this.iBtnOrange0_Click);
            this.iBtnOrange2.Click += new ImageClickEventHandler(this.iBtnOrange2_Click);
            this.iBtnOrange3.Click += new ImageClickEventHandler(this.iBtnOrange3_Click);
            this.iBtnOrange4.Click += new ImageClickEventHandler(this.iBtnOrange4_Click);
            this.iBtnOrange5.Click += new ImageClickEventHandler(this.iBtnOrange5_Click);
            this.iBtnOrange6.Click += new ImageClickEventHandler(this.iBtnOrange6_Click);
            this.iBtnOrange7.Click += new ImageClickEventHandler(this.iBtnOrange7_Click);
            this.iBtnOrange8.Click += new ImageClickEventHandler(this.iBtnOrange8_Click);
            this.saveBtn.Click += new EventHandler(this.saveBtn_Click);
            base.Load += new EventHandler(this.Page_Load);
        }

        private void InitPage()
        {
            this.bloodTypeDdl.Items.Clear();
            ListItem bloodTypeItem0 = new ListItem();
            bloodTypeItem0.Text = " ";
            ListItem bloodTypeItem1 = new ListItem();
            bloodTypeItem1.Text = "0";
            ListItem bloodTypeItem2 = new ListItem();
            bloodTypeItem2.Text = "A";
            ListItem bloodTypeItem3 = new ListItem();
            bloodTypeItem3.Text = "B";
            ListItem bloodTypeItem4 = new ListItem();
            bloodTypeItem4.Text = "AB";
            this.bloodTypeDdl.Items.Add(bloodTypeItem0);
            this.bloodTypeDdl.Items.Add(bloodTypeItem1);
            this.bloodTypeDdl.Items.Add(bloodTypeItem2);
            this.bloodTypeDdl.Items.Add(bloodTypeItem3);
            this.bloodTypeDdl.Items.Add(bloodTypeItem4);
            this.BirthYearDdl.Items.Clear();
            this.BirthMonthDdl.Items.Clear();
            this.BirthDayDdl.Items.Clear();
            ListItem tmpItem = new ListItem();
            tmpItem.Text = "----";
            this.BirthYearDdl.Items.Add(tmpItem);
            ListItem tmpItem1 = new ListItem();
            tmpItem1.Text = "--";
            this.BirthMonthDdl.Items.Add(tmpItem1);
            this.BirthDayDdl.Items.Add(tmpItem1);
            this.lbSaveMsg.Text = string.Empty;
            for (int i = DateTime.Now.Year; i >= 0x78a; i--)
            {
                ListItem YearItem = new ListItem();
                YearItem.Text = i.ToString();
                this.BirthYearDdl.Items.Add(YearItem);
            }
            for (int i = 1; i <= 12; i++)
            {
                ListItem MonthItem = new ListItem();
                MonthItem.Text = i.ToString();
                this.BirthMonthDdl.Items.Add(MonthItem);
            }
            for (int i = 1; i <= 0x1f; i++)
            {
                ListItem DateItem = new ListItem();
                DateItem.Text = i.ToString();
                this.BirthDayDdl.Items.Add(DateItem);
            }
            this.MarriageYearDdl.Items.Clear();
            this.MarriageMonthDdl.Items.Clear();
            this.MarriageDateDdl.Items.Clear();
            ListItem tmpItem2 = new ListItem();
            tmpItem2.Text = "----";
            this.MarriageYearDdl.Items.Add(tmpItem);
            ListItem tmpItem3 = new ListItem();
            tmpItem3.Text = "--";
            this.MarriageMonthDdl.Items.Add(tmpItem1);
            this.MarriageDateDdl.Items.Add(tmpItem1);
            this.lbSaveMsg.Text = string.Empty;
            for (int i = DateTime.Now.Year; i >= 0x78a; i--)
            {
                ListItem YearItem = new ListItem();
                YearItem.Text = i.ToString();
                this.MarriageYearDdl.Items.Add(YearItem);
            }
            for (int i = 1; i <= 12; i++)
            {
                ListItem MonthItem = new ListItem();
                MonthItem.Text = i.ToString();
                this.MarriageMonthDdl.Items.Add(MonthItem);
            }
            for (int i = 1; i <= 0x1f; i++)
            {
                ListItem DateItem = new ListItem();
                DateItem.Text = i.ToString();
                this.MarriageDateDdl.Items.Add(DateItem);
            }
        }

        protected override void OnInit(EventArgs e)
        {
            this.InitializeComponent();
            base.OnInit(e);
            this.Principal = this.Context.User as UserPrincipal;
        }

        private void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                this.SelectAuth();
            }
        }

        private void saveBtn_Click(object sender, EventArgs e)
        {
            string strBirthPlace = this.BirthPlaceTxb.Text.Trim();
            string strHomeAdd = this.TxbHomeAdd.Text.Trim();
            string strRelocationAdd = this.RelocationAddTxb.Text.Trim();
            string strHomeTel1 = this.TxbHomeTel1.Text.Trim();
            string strHomeTel2 = this.TxbHomeTel2.Text.Trim();
            string strHomeTel3 = this.TxbHomeTel3.Text.Trim();
            string strMobile = this.MobileTxb.Text.Trim();
            string strbloodType = this.bloodTypeDdl.SelectedItem.Text;
            string strWeight = this.WeightTxb.Text.Trim();
            string strHeight = this.HeightTxb.Text.Trim();
            string strSpcHobbiex = this.SpcHobbiexTxb.Text.Trim();
            try
            {
                DateTime birthDate = new DateTime(0x708, 1, 1);
                DateTime marrigeDate = new DateTime(0x708, 1, 1);
                if (((this.BirthYearDdl.SelectedItem.Text != "----") || (this.BirthMonthDdl.SelectedItem.Text != "--")) || (this.BirthDayDdl.SelectedItem.Text != "--"))
                {
                    if (this.BirthYearDdl.SelectedItem.Text == "----")
                    {
                        birthDate = new DateTime(0x708, Convert.ToInt32(this.BirthMonthDdl.SelectedItem.Text), Convert.ToInt32(this.BirthDayDdl.SelectedItem.Text));
                    }
                    else
                    {
                        birthDate = new DateTime(Convert.ToInt32(this.BirthYearDdl.SelectedItem.Text), Convert.ToInt32(this.BirthMonthDdl.SelectedItem.Text), Convert.ToInt32(this.BirthDayDdl.SelectedItem.Text));
                    }
                }
                if (((this.MarriageYearDdl.SelectedItem.Text != "----") || (this.MarriageMonthDdl.SelectedItem.Text != "--")) || (this.MarriageDateDdl.SelectedItem.Text != "--"))
                {
                    if (this.MarriageYearDdl.SelectedItem.Text == "----")
                    {
                        marrigeDate = new DateTime(0x708, Convert.ToInt32(this.MarriageMonthDdl.SelectedItem.Text), Convert.ToInt32(this.MarriageDateDdl.SelectedItem.Text));
                    }
                    else
                    {
                        marrigeDate = new DateTime(Convert.ToInt32(this.MarriageYearDdl.SelectedItem.Text), Convert.ToInt32(this.MarriageMonthDdl.SelectedItem.Text), Convert.ToInt32(this.MarriageDateDdl.SelectedItem.Text));
                    }
                }
                if (ManageCustomer.IsExistSameCoustomerPersonalInfo(new Guid(base.Request.QueryString["CustomerId"])))
                {
                    ManageCustomer.UpdateCustomerPersonalInfo(new Guid(base.Request.QueryString["CustomerId"]), birthDate, marrigeDate, strBirthPlace, strHomeAdd, strRelocationAdd, strHomeTel1 + "-" + strHomeTel2 + "-" + strHomeTel3, strMobile, this.bloodTypeDdl.SelectedItem.Text, strWeight, strHeight, strSpcHobbiex);
                    ManageLog.InsertLog(this.Principal.SysUser.UserId, this.Principal.SysUser.LoginName, DateTime.Now, "UpdatePersonal", "IP:" + base.Request.UserHostAddress + " DNS:" + base.Request.UserHostName, ManageCustomer.GetCustomerBasicInfoViaId(new Guid(base.Request.QueryString["CustomerId"])).Name, new Guid(base.Request.QueryString["CustomerId"]));
                }
                else
                {
                    ManageCustomer.InsertNewCustomerPersonalInfo(new Guid(base.Request.QueryString["CustomerId"]), birthDate, marrigeDate, strBirthPlace, strHomeAdd, strRelocationAdd, strHomeTel1 + "-" + strHomeTel2 + "-" + strHomeTel3, strMobile, this.bloodTypeDdl.SelectedItem.Text, strWeight, strHeight, strSpcHobbiex);
                    ManageLog.InsertLog(this.Principal.SysUser.UserId, this.Principal.SysUser.LoginName, DateTime.Now, "InsertPersonal", "IP:" + base.Request.UserHostAddress + " DNS:" + base.Request.UserHostName, ManageCustomer.GetCustomerBasicInfoViaId(new Guid(base.Request.QueryString["CustomerId"])).Name);
                }
            }
            catch (ArgumentOutOfRangeException exOutOfRange)
            {
                this.lbSaveMsg.Text = exOutOfRange.Message;
                return;
            }
            catch (Exception ex)
            {
                this.lbSaveMsg.Text = ex.Message;
                return;
            }
            this.lbSaveMsg.Text = "Save successfully!";
        }

        private void SelectAuth()
        {
            if (this.Principal.OwnRole.TypeB == 0)
            {
                this.InitPage();
                this.FillPage();
                this.BirthPlaceTxb.ReadOnly = true;
                this.TxbHomeAdd.ReadOnly = true;
                this.RelocationAddTxb.ReadOnly = true;
                this.TxbHomeTel1.ReadOnly = true;
                this.TxbHomeTel2.ReadOnly = true;
                this.TxbHomeTel3.ReadOnly = true;
                this.MobileTxb.ReadOnly = true;
                this.WeightTxb.ReadOnly = true;
                this.HeightTxb.ReadOnly = true;
                this.SpcHobbiexTxb.ReadOnly = true;
                this.saveBtn.Visible = false;
            }
            else if (this.Principal.OwnRole.TypeB == 1)
            {
                this.InitPage();
                this.FillPage();
            }
        }

        private void SetFrom()
        {
            string language = this.Session["language"].ToString();
            string path = base.Server.MapPath("~/LanguageConfig.xml");
            this.lbBirth.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbBirth", language, path);
            this.lbBYear.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbBYear", language, path);
            this.lbBMonth.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbBMonth", language, path);
            this.lbBDate.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbBDate", language, path);
            this.lbMYear.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbMYear", language, path);
            this.lbMMonth.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbMMonth", language, path);
            this.lbMDate.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbMDate", language, path);
            this.lbBirthPlace.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbBirthPlace", language, path);
            this.lbMarriage.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbMarriage", language, path);
            this.lbHomeAdd.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbHomeAdd", language, path);
            this.lbRelocationAdd.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbRelocationAdd", language, path);
            this.lbHomeTel.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbHomeTel", language, path);
            this.lbMobile.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbMobile", language, path);
            this.lbBloodType.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbBloodType", language, path);
            this.lbWeight.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbWeight", language, path);
            this.lbHeight.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbHeight", language, path);
            this.lbSpcHobbiex.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "lbSpcHobbiex", language, path);
            this.saveBtn.Text = ManageSystemConfig.GetSystemSetLanguage("CustomerInfoPersonalPage", "saveBtn", language, path);
        }

        private void SetFromImage()
        {
            switch (this.Session["language"].ToString())
            {
                case "cn":
                    this.iBtnCustomer.ImageUrl = "../images/title_customerinfo.jpg";
                    this.iBtnOrange0.ImageUrl = "../images/title_CustomerInfo_lable_1_orange.jpg";
                    this.iBtnGray1.ImageUrl = "../images/title_CustomerInfo_lable_2_Gray.jpg";
                    this.iBtnOrange2.ImageUrl = "../images/title_CustomerInfo_lable_3_orange.jpg";
                    this.iBtnOrange3.ImageUrl = "../images/title_CustomerInfo_lable_4_orange.jpg";
                    this.iBtnOrange4.ImageUrl = "../images/title_CustomerInfo_lable_5_orange.jpg";
                    this.iBtnOrange5.ImageUrl = "../images/title_CustomerInfo_lable_6_orange.jpg";
                    this.iBtnOrange6.ImageUrl = "../images/title_CustomerInfo_lable_7_orange.jpg";
                    this.iBtnOrange7.ImageUrl = "../images/title_CustomerInfo_lable_8_orange.jpg";
                    this.iBtnOrange8.ImageUrl = "../images/title_CustomerInfo_lable_9_orange.gif";
                    break;

                case "en":
                    this.iBtnCustomer.ImageUrl = "../images/title_customerinfoEn.jpg";
                    this.iBtnOrange0.ImageUrl = "../images/title_CustomerInfoEn_lable_1_orange.jpg";
                    this.iBtnGray1.ImageUrl = "../images/title_CustomerInfoEn_lable_2_Gray.jpg";
                    this.iBtnOrange2.ImageUrl = "../images/title_CustomerInfoEn_lable_3_orange.jpg";
                    this.iBtnOrange3.ImageUrl = "../images/title_CustomerInfoEn_lable_4_orange.jpg";
                    this.iBtnOrange4.ImageUrl = "../images/title_CustomerInfoEn_lable_5_orange.jpg";
                    this.iBtnOrange5.ImageUrl = "../images/title_CustomerInfoEn_lable_6_orange.jpg";
                    this.iBtnOrange6.ImageUrl = "../images/title_CustomerInfoEn_lable_7_orange.jpg";
                    this.iBtnOrange7.ImageUrl = "../images/title_CustomerInfoEn_lable_8_orange.jpg";
                    this.iBtnOrange8.ImageUrl = "../images/title_CustomerInfoEn_lable_9_orange.gif";
                    break;
            }
        }
    }
}

